package com.serookie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/5/12 23:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="商品对象", description="商品对象")
public class Goods{
    @ApiModelProperty("主键id")
    @TableId(type = IdType.AUTO)
    private Integer goodsId;
    @ApiModelProperty("商品名称")
    private String goodsName;
    @ApiModelProperty("商品价格")
    private BigDecimal goodsPrice;
    @ApiModelProperty("商品的数量")
    private Integer goodsNumber;
    @ApiModelProperty("商品的图标")
    private String goodsBigLogo;
    @ApiModelProperty("商品的图标集")
    private String goodsSmallLogo;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("商品的创建时间")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("商品的修改时间")
    private Date updateTime;
    @ApiModelProperty("商品的是否是热门推荐")
    private Integer hotGoods;
    @ApiModelProperty("商品的所属分类一级id")
    private Integer categoryOneId;
    @ApiModelProperty("商品的所属分类二级id")
    private Integer categoryTwoId;
    @ApiModelProperty("商品的所属分类三级id")
    private Integer categoryThreeId;
    @ApiModelProperty("商品的介绍")
    private String goodsIntroduce;
    @ApiModelProperty("商品详情")
    @TableField(exist = false)
    private List<GoodsDetails> details;
}
